<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>窗口</title>
    <script>
        console.log(innerHeight,innerWidth);
        a=1;
        // console.log(window);
        // let r=confirm();
        // console.log(r);
        t1=setInterval(()=>{console.log(1)},3000);
        t2=setTimeout(()=>{console.log(5)},3000);
    </script>
</head>
<body>
    <iframe src="./iframe.html"  frameborder="1"></iframe>
    <button onclick="clearInterval(t1)">停止setInterval</button>
    <button onclick="clearInterval(t2)">停止setTimeout</button>
</body>
</html>